#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
@file_name: creating_multiple_precess.py
@date: 2025-07-21 16:55
@author: Falling Snow
@desc: 创建多进程程序
"""

import multiprocessing
import os


def hello_form_process():
    print(f"你好, 运行该程序的子进程ID为: {os.getpid()}")


if __name__ == '__main__':
    hello_process = multiprocessing.Process(target=hello_form_process)
    hello_process.start()

    print(f"你好, 父进程的ID为: {os.getpid()}")
    hello_process.join()
